<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<table border="1" style="width:300px;">
		<tr>
			<th>用户 ID</th>
			<th>用户姓名</th>
			<th>用户年龄</th>
		</tr>
		<tr th:each="user : ${list}">
			<td th:text="${user.userId}"></td>
			<td th:text="${user.name}"></td>
			<td th:text="${user.age}"></td>
			<td>
				<a th:href="@{/user/toUpdate(userId=${user.userId})}">编辑</a>
				<a th:href="@{/user/deleteUser(userId=${user.userId})}">删除</a>
			</td>
		</tr>
	</table>
	<a th:href="@{/user/input}">增加</a><br>
	<a th:href="@{/user/copyLastData}">copy最后一条</a>

</body>
</html>